package net.sunofbeach.blog.pojo.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author bing_  @create 2021/12/1-13:52
 */
@Data
@ApiModel(value = "ArticleQuery 对象", description = "文章查询条件")
public class ArticleQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "分类ID")
    private String categoryId;

    @ApiModelProperty(value = "状态：0表示删除、1表示发布、2表示草稿、3表示置顶")
    private String state;

    @ApiModelProperty(value = "标签")
    private String Label;

    @ApiModelProperty(value = "阅读数量")
    private Integer viewCount;

    @ApiModelProperty(value = "查询开始时间", example = "2021-11-11 10:10:10")
    private String begin;

    @ApiModelProperty(value = "查询结束时间", example = "2021-11-11 10:10:10")
    private String end;

}
